package org.zpmis.api.business;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
import org.zpmis.domain.role.service.SysRoleService;

/**
 * Created with CodeGenerator
 * Description: 业务处理service
 * @author  Yang
 * Date: 2021-5-26
 * Time: 9:06:46
 */
@Service
@Slf4j
public class TestWebService {

     //需要调用其他微服务接口的时候 需要使用该注解进行远程调用，dubbo包下
     @Reference
     private SysRoleService sysRoleService;

     public String commonService(){
          return "---dubbo接口---"+sysRoleService.findAll();
     }
}
